|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrolesystem.roles.game.Manager
public abstract class Manager
This role is the manager of a generic game. Keywords: game, manager.
| Field Summary | |
|---|---|
static KnownEvent |
KE_askKind
A player asks the kind of the game. |
static KnownEvent |
KE_giveUp
A player gives up the current game. |
static KnownEvent |
KE_Move
A player makes a move. |
static KnownEvent |
KE_reqPlay
A player requests to play. |
static java.lang.String |
ROLE_ID
Role identifier. |
| Constructor Summary | |
|---|---|
Manager()
|
|
| Method Summary | |
|---|---|
static RoleAction |
accept(int addressee)
Notifies to a player that it can play. |
static RoleAction |
gameLost(int addressee)
Notifies to a player that it has lost the game. |
static RoleAction |
gameOver(int addressee)
Notifies that the game is over. |
static RoleAction |
gameWon(int addressee)
Notifies to a player that it has won the game. |
static RoleAction |
notifyKind(int addressee,
java.lang.String content)
Notifies the kind of the game. |
static RoleAction |
notifySituation(int addressee,
java.io.Serializable content)
Notifies the current situation of the game. |
static RoleAction |
refuse(int addressee)
Notifies to a player that it cannot play. |
static RoleAction |
refuseMove(int addressee)
Refuse the move of a player. |
static RoleAction |
requestMove(int addressee)
Requests to a player to make its move. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ROLE_ID
public static final KnownEvent KE_askKind
public static final KnownEvent KE_reqPlay
public static final KnownEvent KE_Move
public static final KnownEvent KE_giveUp
| Constructor Detail |
|---|
public Manager()
| Method Detail |
|---|
public static RoleAction notifyKind(int addressee,
java.lang.String content)
addressee - Playercontent - Kind of the game.public static RoleAction accept(int addressee)
addressee - Playerpublic static RoleAction refuse(int addressee)
addressee - Player
public static RoleAction notifySituation(int addressee,
java.io.Serializable content)
addressee - Playercontent - Situation of the game.public static RoleAction requestMove(int addressee)
addressee - Playerpublic static RoleAction refuseMove(int addressee)
addressee - Playerpublic static RoleAction gameWon(int addressee)
addressee - Playerpublic static RoleAction gameLost(int addressee)
addressee - Playerpublic static RoleAction gameOver(int addressee)
addressee - Player
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||